package cn.edu.gcu.lost.sys.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.edu.gcu.lost.sys.entity.User;

public interface UserDao {
	
	User get(User user);
	
	User getByLoginName(User user);

	List<User> findList(@Param("search")String search, @Param("start")int start, @Param("size")int size);

	int insert(User user);

	int update(User user);

	int addRole(User user);

	int removeRole(User user);

	int delete(User user);

	int updatePassword(User user);

	int isExist(User user);

	int updateSelf(User user);

	int isExistByNo(User user);

	List<User> findListByRole(User user);

	Integer countAllNum(@Param(value="search")String search);

	User findDetail(User user);

}
